import request from '@/utils/request'
export function adminLogin(data) {
  return request({
    url: '/auth/admin/login',
    method: 'POST',
    data
  })
}
export function adminRegister(data) {
  return request({
    url: '/auth/admin/register',
    method: 'POST',
    data
  })
}
export function adminInfo() {
  return request({
    url: '/auth/admin/info',
    method: 'GET'
  })
}
export function adminInfoUpdate(data) {
  return request({
    url: '/auth/admin/info',
    method: 'POST',
    data
  })
}
export function adminForgetPwd(data) {
  return request({
    url: '/auth/admin/forget_pwd',
    method: 'POST',
    data
  })
}
export function adminChangePwd(data) {
  return request({
    url: '/auth/admin/change_pwd',
    method: 'POST',
    data
  })
}
